home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
nrpas13.zip
/
BESSK1.DEM
< prev
next >
Wrap
Text File
|
1991-04-29
|
574b
|
27 lines
PROGRAM d6r24(input,output,dfile);
(* driver for routine BESSK1 *)
VAR
i,nval : integer;
val,x : real;
txt : string[27];
dfile : text;
(*$I MODFILE.PAS *)
(*$I BESSI1.PAS *)
(*$I BESSK1.PAS *)
BEGIN
glopen(dfile,'fncval.dat');
REPEAT readln(dfile,txt) UNTIL (txt = 'Modified Bessel Function K1');
readln(dfile,nval);
writeln(txt);
writeln;
writeln('x':5,'actual':16,'bessk1(x)':17);
FOR i := 1 to nval DO BEGIN
readln(dfile,x,val);
writeln(x:6:2,val:16:7,bessk1(x):16:7)
END;
close(dfile)
END.